package com.logistics.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.easybuild.core.security.user.UserDaoImpl;

import com.logistics.AdminUser;
import com.logistics.AdminUserQueryParam;

@Repository
public class AdminUserDaoImpl extends UserDaoImpl<AdminUser> implements AdminUserDao {

	@Override
	protected Class<AdminUser> getEntityClass() {
		return AdminUser.class;
	}
	
	@Override
	protected void sessionFactoryInjected() {
		setUseDefaultNamingRule(true);
		setEntityNameForAuthenticate("AdminUser");
	}

	@Override
	public List<AdminUser> queryByParam(AdminUserQueryParam param) {
		return queryWithParameter(param, "u", "u.username", new QueryCriteriaSetter() {

			@Override
			public void setCriteria(StringBuffer hql, Map<String, Object> values) {
				
			}
		});
		
	}

	
}
